 <template>
    <el-table
      :data="tableData"
      style="width: 100%">
      
      <el-table-column
        prop="username"
        label="姓名"
        width="180">
      </el-table-column>
      <el-table-column
        prop="email"
        label="邮箱">
      </el-table-column>
    </el-table>
</template>

<script>
export default {
    data(){
        return{
            tableData:[]
        }
    },
    created(){
        this.getData()
    },
    methods:{
        getData(){
            this.$axios.get("/login/all").then(res=>{
                this.tableData = res.data
               
            })
        }
    }
}
</script>

<style>

</style>